﻿#include "MaterialGraphLinkModel.h"

#include "MaterialGraph/Pin/MaterialGraphPinModel.h"

bool RMaterialGraphLinkModel::IsValid() const
{
    if(Start->bIsHidden
        || End->bIsHidden
        || Start->ValueType != End->ValueType
        || End->GetLastLink() != this //输入引脚只有最后一个连接有效
        )
    {
        return false;
    }

    return true;
}